<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php echo $title_for_layout; ?></title>
        <?=$html->css('style', 'stylesheet', array("media"=>"all" ));?>
        <?=$html->charset('utf-8'); ?>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <meta name="copyright" content="Copyright 2009">
        <meta name="designer" content="FreeLogo.web.id">
        <?php if(isset($post['Post']['meta'])):?>
            <meta name="description" content="<?=$post['Post']['meta']?>" />
        <?php endif;?>

        <?php if(isset($post['Post']['keyword'])):?>
            <meta name="keywords" content="<?=$post['Post']['keyword']?>" />
        <?php endif;?>

        <link rel="shortcut icon" href="<?=$baseUrl?>/webroot/img/themes/favicon.png" type="image/x-icon">
    </head>
    <body>
        <div id="container">
            <div id="branding">
                <div id="branding-left">
                    <?=$html->image('themes/logo.png',array('url'=>'/','alt'=>'Free Logo'))?>
                </div>
                <div id="branding-right">
                    <div id="branding-menu">
                        <?php if ($session->check('Auth.User') == true):?>
                            <div class="branding-menu-admin"><h1><?=$html->link('Admin Page','/users/index',array('class'=>'passive'))?></h1></div>
                        <?php else:?>
                            <?php
                            $url = $this->params['url']['url'];
                            if($url == '/'){$menuHome = 'active';} elseif ($url == 'posts'){$menuHome = 'active';} elseif ($url == 'posts/index'){$menuHome = 'active';}else{$menuHome ='passive';};
                            $menuAbout = $url == 'about' ? 'active' : 'passive';
                            $menuContact = $url == 'contact' ? 'active' : 'passive';
                            $menuDownload = $url == 'download' ? 'active' : 'passive';
                            ?>
                            <div class="branding-menu"><h1><?=$html->link('Home','/',array('class'=>$menuHome,'title'=>'Home page freelogo.web.id'))?></h1></div>
                            <div class="branding-menu"><h1><?=$html->link('Find logo','/finds',array('class'=>$menuDownload,'title'=>'Search free logo design'))?></h1></div>
                            <div class="branding-menu"><h1><?=$html->link('About','/about',array('class'=>$menuAbout,'title'=>'About website creator and founder'))?></h1></div>
                            <div class="branding-menu"><h1><?=$html->link('Contact','/contact',array('class'=>$menuContact,'title'=>'Contact and hire us'))?></h1></div>
                        <?php endif;?>
                        <div class="clear"></div>
                        <div id="branding-search">
                            <div id="search">
                                <?=$form->create('find',array('id'=>'SearchBox','action'=>'index'));?>
                                <input type="text" alt="search free logo here ..." value="search free logo here ..." onfocus="if (this.value=='search free logo here ...') this.value=''" onblur="if(this.value=='') { this.value='search free logo here ...'; return false; }" class="input-search" name="data[Post][find]" id="PostFind" />
                                <?=$form->submit('Search',array('id'=>'search-submit','div'=>false)); ?>
                                <?=$form->end(); ?>
                            </div>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="clear"></div>
            </div>

            <!-- End of header -->

            <div id="content-wrapper">
                <?php echo $content_for_layout; ?>
            </div>
            <div class="clear"></div>
            <!-- End of content -->

            <div id="footer">
                <div id="footer-left">
                    <?=$html->link('Home','/')?> | <?=$html->link('About','/about')?> |
                    <?=$html->link('Contact','/contact')?> | <?=$html->link('Search','/finds')?> | <?=$html->link('Terms of Service','/terms')?> |
                    <?=$html->link('Privacy','/privacy')?> |
                    <?=$html->link('Sitemap','/sitemap')?><br /><br />
                    <?=$html->link('Copyright 2009','/copyright')?> |  <?=$html->link('Help','/help')?>
                </div>
                <div id="footer-right">
                    Created by <?=$html->link('Freelogo.web.id','http://freelogo.web.id',array('title'=>'Free logo download AI SVG PS'))?> <br />@ 2009
                </div>
                <div class="clear"></div>
            </div>

            <!-- End of footer -->
            <div id="debug">
                <?php echo $cakeDebug; ?>
            </div>

        </div>
    </body>
</html>